package cn.itcast.user.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Component
@Data
//prefix里面不能用驼峰写法，必须全部小写!
@ConfigurationProperties(prefix = "userinfo")
public class UserInfo {
    private String name;
    private Integer age;
}